﻿<%@ Page Title="Redfield Weather - Forecast" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Forecast.aspx.cs" Inherits="RedfieldWeather.Forecast" Async="true" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h1>
Forecast
</h1>
<asp:Repeater ID="rptForecast" runat="server">
	<HeaderTemplate>
		<table border="0">
	</HeaderTemplate>
	<ItemTemplate>
		<tr>
			<td colspan="6" valign="top"><h3><%# Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "Date.DateTime")).ToString("D")%></h3></td>
		</tr>
		<tr>
			<td colspan="4" valign="top"><span class="bold"><%# DataBinder.Eval(Container.DataItem, "Conditions")%></span></td>
			<td width="5"></td>
			<td rowspan="3" valign="bottom"><img src='<%# DataBinder.Eval(Container.DataItem, "Icons['Incredible']")%>' alt='<%# DataBinder.Eval(Container.DataItem, "Conditions")%>' /></td>
		</tr>
		<tr>
			<td width="20"></td>
			<td nowrap="nowrap" class="bold" valign="top">High</td>
			<td width="5"></td>
			<td align="right" valign="top"><%# DataBinder.Eval(Container.DataItem, "High.F")%>&deg; F</td>
		</tr>
		<tr>
			<td width="20"></td>
			<td nowrap="nowrap" class="bold" valign="top">Low</td>
			<td width="5"></td>
			<td align="right" valign="top"><%# DataBinder.Eval(Container.DataItem, "Low.F")%>&deg; F</td>
		</tr>
		<tr>
			<td colspan="6">&nbsp;</td>
		</tr>
	</ItemTemplate>
	<FooterTemplate>
		</table>
	</FooterTemplate>
</asp:Repeater>

</asp:Content>
